import 'package:flutter/material.dart';
import 'package:huajianshe_app/common/C.dart';
import 'package:huajianshe_app/common/TS.dart';
import 'package:huajianshe_app/common/space.dart';
import 'package:huajianshe_app/pages/circle/model/CircleModel.dart';
import 'package:huajianshe_app/pages/main/model/CommentModel.dart';
import 'package:huajianshe_app/pages/user_info/UserInfoItem.dart';
import 'package:huajianshe_app/pages/user_info/model/UserModel.dart';

class CommentItem extends StatelessWidget {

  final CommentListData? data;
  final CircleInfo? circleInfo;

  const CommentItem(this.data, this.circleInfo, {Key? key}) : super(key: key);

  // @override
  // State<StatefulWidget> createState() {
  //   return _CommentItemState();
  // }

  @override
  Widget build(BuildContext context) {
    print('data: $data');
    return Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
      UserInfoItem(data?.userInfo, circleInfo, time: data?.createTime ?? ''),
      H(6),
      Padding(padding: EdgeInsets.only(left: 48), child:
        Text(data?.content ?? '', style: TS(14, C.gray666))
      ),
    ]);
  }
}

// class _CommentItemState extends BaseState<CommentItem> {
//   @override
//   Widget build(BuildContext context) {
//     return Text("_CommentItemState");
//   }
// }